﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AC1 RID: 2753
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MarkAvatarCsReq : IMessage<MarkAvatarCsReq>, IMessage, IEquatable<MarkAvatarCsReq>, IDeepCloneable<MarkAvatarCsReq>, IBufferMessage
	{
		// Token: 0x170022BC RID: 8892
		// (get) Token: 0x06007B25 RID: 31525 RVA: 0x00148F54 File Offset: 0x00147154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MarkAvatarCsReq> Parser
		{
			get
			{
				return MarkAvatarCsReq._parser;
			}
		}

		// Token: 0x170022BD RID: 8893
		// (get) Token: 0x06007B26 RID: 31526 RVA: 0x00148F5B File Offset: 0x0014715B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MarkAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022BE RID: 8894
		// (get) Token: 0x06007B27 RID: 31527 RVA: 0x00148F6D File Offset: 0x0014716D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MarkAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06007B28 RID: 31528 RVA: 0x00148F74 File Offset: 0x00147174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarCsReq()
		{
		}

		// Token: 0x06007B29 RID: 31529 RVA: 0x00148F7C File Offset: 0x0014717C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarCsReq(MarkAvatarCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.isMarked_ = other.isMarked_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007B2A RID: 31530 RVA: 0x00148FAD File Offset: 0x001471AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarCsReq Clone()
		{
			return new MarkAvatarCsReq(this);
		}

		// Token: 0x170022BF RID: 8895
		// (get) Token: 0x06007B2B RID: 31531 RVA: 0x00148FB5 File Offset: 0x001471B5
		// (set) Token: 0x06007B2C RID: 31532 RVA: 0x00148FBD File Offset: 0x001471BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170022C0 RID: 8896
		// (get) Token: 0x06007B2D RID: 31533 RVA: 0x00148FC6 File Offset: 0x001471C6
		// (set) Token: 0x06007B2E RID: 31534 RVA: 0x00148FCE File Offset: 0x001471CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMarked
		{
			get
			{
				return this.isMarked_;
			}
			set
			{
				this.isMarked_ = value;
			}
		}

		// Token: 0x06007B2F RID: 31535 RVA: 0x00148FD7 File Offset: 0x001471D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MarkAvatarCsReq);
		}

		// Token: 0x06007B30 RID: 31536 RVA: 0x00148FE5 File Offset: 0x001471E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MarkAvatarCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.IsMarked == other.IsMarked && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007B31 RID: 31537 RVA: 0x00149024 File Offset: 0x00147224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.IsMarked)
			{
				num ^= this.IsMarked.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007B32 RID: 31538 RVA: 0x0014907C File Offset: 0x0014727C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007B33 RID: 31539 RVA: 0x00149084 File Offset: 0x00147284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007B34 RID: 31540 RVA: 0x00149090 File Offset: 0x00147290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.IsMarked)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.IsMarked);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007B35 RID: 31541 RVA: 0x001490EC File Offset: 0x001472EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.IsMarked)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007B36 RID: 31542 RVA: 0x00149138 File Offset: 0x00147338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MarkAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.IsMarked)
			{
				this.IsMarked = other.IsMarked;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007B37 RID: 31543 RVA: 0x00149188 File Offset: 0x00147388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007B38 RID: 31544 RVA: 0x00149194 File Offset: 0x00147394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsMarked = input.ReadBool();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002F12 RID: 12050
		private static readonly MessageParser<MarkAvatarCsReq> _parser = new MessageParser<MarkAvatarCsReq>(() => new MarkAvatarCsReq());

		// Token: 0x04002F13 RID: 12051
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F14 RID: 12052
		public const int AvatarIdFieldNumber = 4;

		// Token: 0x04002F15 RID: 12053
		private uint avatarId_;

		// Token: 0x04002F16 RID: 12054
		public const int IsMarkedFieldNumber = 11;

		// Token: 0x04002F17 RID: 12055
		private bool isMarked_;
	}
}
